package com.hyhy.hycloud.uaa;

import com.hyhy.hycloud.commons.exception.HyCloudErrorDescription;
import com.hyhy.hycloud.commons.exception.HyCloudRuntimeException;

/**
 * UAA runtime exception
 *
 * @author Xuegui Yuan
 * @date 2018-09-18
 */
public class UaaRuntimeException extends HyCloudRuntimeException {

    public UaaRuntimeException(String errorCode, String message) {
        super(errorCode, message);
    }

    public UaaRuntimeException(String errorCode, Exception e) {
        super(errorCode, e);
    }

    public UaaRuntimeException(HyCloudErrorDescription errorDescription) {
        super(errorDescription.getErrorCode(), errorDescription.getMessage());
    }

}
